The USBINT Sample

The USBINT Sample accompanies Chapter 11 and illustrates how to program an interrupt endpoint

The sample includes three components:

Building USBINT

To build USBINT.SYS, follow the general instructions for building a WDM sample. The Microsoft Visual C++ project file is named USBINT.DSP in the SYS subdirectory.

To build TEST.EXE, follow the general instructions for building user-mode programs. The Microsoft Visual C++ project file is named TEST.DSP in the TEST subdirectory.

Testing USBINT

First follow the general instructions for testing USB samples to install the device firmware (USBINT.HEX in the EZUSB subdirectory) and the driver. Then open a command prompt and run TEST.EXE from the TEST\DEBUG subdirectory. It will appear to hang. Press button number 1 on the Anchor Chips development board. Each time you press the button, the LED display will change, and TEST will record another interrupt. Terminate TEST by pressing Ctrl+Break.

While TEST is not running, the USBINT device should be powered down. You can tell this is the case if only the decimal point light on the development board’s LED display is on. With some combinations of motherboard, BIOS, and controller chip set, USB power management doesn't work in either Windows 98 or Windows 2000. Your computer may not, therefore, allow you power down the USBINT device. The fault is not in the driver.